import {showTitle} from '@/libs/util'
import CommonIcon from '_c/common-icon'

export default {
    components: {
        CommonIcon
    },
    methods: {
        showTitle(item) {
            return showTitle(item, this)
        },
        showChildren(item) {
            return item.children && item.children.length
        },
        getNameOrHref(item, childre) {
            return item.href ? `isTurnByHref_${item.href}` : (childre ? item.children[0].name : item.name)
        }
    }
}
